<?php

namespace app\api\controller\v3sass;

use think\Controller;

/**
 * 首页接口
 */
class Platform extends Controller
{
    protected $noNeedLogin = ['getPlatform'];
    protected $noNeedRight = '*';
    protected $noNeedPlatform = ['getPlatform'];

    public function getPlatform() {
        $kw = input('kw/s', 0);
        $where = [];
        if ($kw) {
            $where['name'] = ['like', "%$kw%"];
        }

        $list = \app\api\logic\Platform::getPlatform($where);

        $this->result($list, 1, '平台列表', 'json');
    }
}
